package com.example.frank.test2.util;

import android.content.Context;
import android.content.res.AssetManager;
import android.os.AsyncTask;

import com.example.frank.test2.ImportAction;
import com.example.frank.test2.domain.ExcelInfo;

import java.util.ArrayList;

/**
 * Created by Administrator on 2018/5/21.
 * excel表格导入的异步处理任务
 */


public class ExcelDataLoader extends AsyncTask<String,Void,ArrayList<ExcelInfo>>{

    private Context mContext = null;

    public ExcelDataLoader(Context context) {
        mContext = context;
    }

    @Override
    protected void onPreExecute() {
        super.onPreExecute();
    }

    @Override
    protected ArrayList<ExcelInfo> doInBackground(String... strings) {
       return getXlsData(strings[0],0);
    }

    @Override
    protected void onPostExecute(ArrayList<ExcelInfo> excelInfos) {
        super.onPostExecute(excelInfos);

    }

    private ArrayList<ExcelInfo> getXlsData(String xlsName, int index){

        return null;
    }

}


